#parse("/regist/top.htm")
<script type="text/javascript" src="/js/checkLegal.js"></script>
<script language="javascript">
function doSave(){
	if(doCheck()){
		if(document.getElementById("EditForm").cid.value!="")
		document.getElementById("EditForm").parameter.value="update";
		document.getElementById("EditForm").submit();
	}
}
function doCheck()
{
var key=document.getElementById("EditForm").username.value;
if(key==""||!isUsername(key)){
	alert("用户名输入有误");
	document.getElementById("EditForm").username.focus();
	return false;
}
key=document.getElementById("EditForm").password.value;
if(key==""||!isPassWord(key)){
	alert("密码输入有误");
	document.getElementById("EditForm").password.focus();
	return false;
}
key=document.getElementById("EditForm").password1.value;
if(document.getElementById("EditForm").password.value!=key){
	alert("两次输入的密码不一致！");
	document.getElementById("EditForm").password.focus();
	return false;
}
key=document.getElementById("EditForm").qq.value;
if(key==""||!isChinese(key)){
	alert("真实姓名输入有误");
	document.getElementById("EditForm").qq.focus();
	return false;
}
key=document.getElementById("EditForm").intro.value;
if(document.getElementById("EditForm").intro.value==""){
	alert("单位不能为空！");
	document.getElementById("EditForm").intro.focus();
	return false;
}

key=document.getElementById("EditForm").email.value;
if(key==""||!isEmail(key))
{
alert("电子邮箱输入有误");
document.getElementById("EditForm").email.focus();
return false;
}
key=document.getElementById("EditForm").sex.value;
if(key=="")
{
alert("请选择性别");
document.getElementById("EditForm").sex.focus();
return false;
}
key=document.getElementById("EditForm").tel.value;
if(key==""||!isChinaMob(key))
{
alert("手机输入有误");
document.getElementById("EditForm").tel.focus();
return false;
}

key=document.getElementById("EditForm").tagimg.value;
if(key==""||!isTel(key))
{
alert("电话输入有误");
document.getElementById("EditForm").tagimg.focus();
return false;
}
return true;
}
function doRefresh(obj,file)
{
if(file!="")
{
obj.src=file;
photoShow.innerHTML="<img src="+file+" align=absmiddle>";
}
}
function doUpload()
{
upFrame.EditForm.parentObj.value=EditForm.photo.name;
upFrame.doUpload();
}
</script>

<div class="clearfix"></div>
<div id="content">
<!--blogleft-->
  <div class="login border1">
    <div class="blogfunction_bar">
      <h2>用户注册</h2>
    <div class="bloglogin">
    
<br />

<form name="EditForm" method="post" action="/blogLogin.do">
 <input type="hidden" name="parameter" value="SaveUserReg" />
 <input type="hidden" name="subCommand" value="" />
 <input type="hidden" name="cid" value="$!cid" />
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td colspan="3" align="center" style="font-size:14px; font-weight:bold;">请填写个人注册信息(<font style="font-weight:bold; color:#F00">*为必填项</font>)</td>
    </tr>
  <tr>
    <td width="140" align="right" class="leftw">用户名</td>
    <td width="163" align="left"><input name="username" type="text" id="username" value="$!username" class="t1"/></td>
    <td width="297" align="left"><font style="color:#F00">*</font> (字母开头，长度为5-16，允许字母数字下划线)</td>
  </tr>
  <tr>
    <td align="right" class="leftw">用户密码</td>
    <td align="left"><input name="password" type="password" id="password" class="t1"/></td>
    <td align="left"><font style="color:#F00">*</font> (字母开头，长度为5-16，允许字母数字下划线)</td>
  </tr>
  <tr>
    <td align="right" class="leftw">确认密码</td>
    <td align="left"><input name="password1" type="password" id="password1"  class="t1"/></td>
    <td align="left"><font style="color:#F00">*</font></td>
  </tr>
  <tr>
    <td align="right" class="leftw">真实姓名</td>
    <td align="left"><input  name="qq" type="text" id="qq" value="$!qq" class="t1"/></td>
    <td align="left"><font style="color:#F00">*</font></td>
  </tr>
  <tr>
    <td align="right" class="leftw">单位</td>
    <td align="left"><input name="intro" type="text" id="intro" value="$!intro"  class="t1"/></td>
    <td align="left"><font style="color:#F00">*</font></td>
  </tr>
  <tr>
    <td align="right" class="leftw">Email地址</td>
    <td align="left"><input name="email" type="text" id="email" value="$!email" class="t1"/></td>
    <td align="left"><font style="color:#F00">*</font></td>
  </tr>
  <tr>
    <td align="right" class="leftw">性别</td>
    <td align="left"><select name="sex" >
      <option value="男" #if($sex.equals("男")) selected #end>男</option>
      <option value="女" #if($sex.equals("女")) selected #end>女</option>
    </select></td>
    <td align="left"><font style="color:#F00">*</font></td>
  </tr>
  <tr>
    <td align="right" class="leftw">手机</td>
    <td align="left"><input  name="tel" type="text" id="tel" value="$!tel" class="t1"/></td>
    <td align="left"><font style="color:#F00">*</font></td>
  </tr>
  <tr>
    <td align="right" class="leftw">电话</td>
    <td align="left"><input name="tagimg" type="text" id="tagimg" value="$!tagimg" class="t1"/></td>
    <td align="left"><font style="color:#F00">*</font>(格式:区号-号码,如010-81512711)</td>
  </tr>
  <tr>
    <td align="right">&nbsp;</td>
    <td><input type="button" name="Submit" value="提交"  onclick="doSave();" />
      <input  type="reset" name="Submit2" value="重置" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
    </div>
    </div>
  </div>
  <!--blogleft end-->
</div>
<div class="clearfix"></div>
#parse("/regist/bottom.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end